//
//  EmployeeCollectionViewCell.swift
//  DSHCMerchant
//
//  Created by 罗德良 on 2018/4/13.
//  Copyright © 2018年 袋鼠好车. All rights reserved.
//

import UIKit
typealias employeeStatusBlock = () -> Void
class EmployeeCollectionViewCell: UICollectionViewCell {

    @IBOutlet var empolyerStatusLabel: UIButton!
    @IBOutlet var phoneLabel: UILabel!
    @IBOutlet var workTypeLabel: UILabel!
    @IBOutlet var nameLabel: UILabel!
    
    var statusBlock: employeeStatusBlock?
    func sendStatusBlock(_ block: @escaping employeeStatusBlock) {
        statusBlock = block
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    
    
    @IBAction func employeeStatusBtn(_ sender: UIButton) {
        if statusBlock != nil {
            self.statusBlock!()
        }
    }
    
}
